#include <stdlib.h>
#include <iostream>
#include <ostream>
#include <fstream>
#include "fs.client.h"
using namespace TOB;
using std::cout;
using std::endl;

void foo(float a, unsigned int b) {}
int main() {
	FS_Client fs(1 << 24 | 127, "root", "123456");
	unsigned int id;
	std::cout << "Try to download file";
	fs.onProgress = foo;
	std::string src = "abc";
	std::cout << src << std::endl;
	std::string path = "Files/";
	std::cout << "Code " << fs.upload("../1.txt", &id) << std::endl;
	//std::cout << "Code " << fs.download(37, src, path) << std::endl;
	//std::cout << src;
	std::cout << id;
	return 0;
}
